﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace TarreOA.TarreValidationCode {
    public class Code {
        private static String code;
        public Code() {
            //
            // TODO: 在此处添加构造函数逻辑
            //
        }

        public static String makeCode(Page page) {
            ValidateNumber vn = new ValidateNumber();
            code = vn.CreateValidateNumber(4);
           // int a = 2;
            vn.CreateValidateGraphic(page, code);
            return code;
        }

        public static String Codes {
            get {
                return code;
            }
        }
    }
}
